package com.lizba.tips.day5;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @Author: Liziba
 * @Date: 2021/10/31 21:15
 */
public class PersonDemo {

    private static final Person[] PERSONS = new Person[] {new Person("李子柒"), new Person("李子捌")};

//    public static final Person[] getPersons() {
//        return PERSONS.clone();
//    }

    public static final List<Person> getPersons() {
        return Collections.unmodifiableList(Arrays.asList(PERSONS));
    }

}
